//
//  FreeManagersListrViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/8.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "FreeManagersListrViewController.h"
#import "FreeManagersViewModel.h"
#import "StoreInformationViewController.h"

@interface FreeManagersListrViewController ()
@property (nonatomic, strong) FreeManagersViewModel *viewModel;
@end

@implementation FreeManagersListrViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.viewModel = [[FreeManagersViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    kWeakSelf(self);
    self.viewModel.BlockCall = ^(GLGWButton * _Nullable callBtn) {
        [weakself leftAction:callBtn];
    };
    self.viewModel.BlockInput = ^(GLGWButton * _Nullable callInput) {
        [weakself ritAction:callInput];
    };
}

- (void)leftAction:(GLGWButton *)sender
{
//    NSMutableString * str = [[NSMutableString alloc] initWithFormat:@"tel:%@",@"10086"];
//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    // 环信沟通
}

- (void)ritAction:(GLGWButton *)sender
{
    StoreInformationViewController * storeVC = [StoreInformationViewController new];
    [self.navigationController pushViewController:storeVC animated:YES];
}

@end
